/********** Library Includes **************************************************/

#include <opencv/cv.h>
#include <opencv/highgui.h>

/********** Local Includes ****************************************************/

#include "cannedsource.h"

#include "common.h"

/********** Namespaces ********************************************************/

using namespace cv;
using namespace std;

/********** Public Methods ****************************************************/

CannedSource::CannedSource(std::vector<std::string> filenames) :
	m_filenames(filenames),
	m_currentFile(0)
{
	
}

Mat CannedSource::next() {
	m_last = imread(m_filenames[m_currentFile]);
	m_currentFile++;
	return m_last;
}

Mat CannedSource::last() {
	return m_last;
}
